<?php

require_once('../utils/query.php');

$userid = $_POST["userid"];

$result = execute_query("SELECT cardid FROM Possession WHERE userid='%s'", $userid);

?>

<table>

<?php

while($row = mysql_fetch_array($result))
{
	?>
	<tr><td>Name:</td><td>

	<?php echo $row['name'] ?>

	</td><td><img src='<?php echo $row['card_img'] ?>'></img></td></tr>
<?php

}

?>

</table>


	